include("shared.lua");
-- Inventory Icon
if(file.Exists("../materials/weapons/asuran_inventory.vmt")) then
	SWEP.WepSelectIcon = surface.GetTextureID("weapons/asuran_inventory");
end
-- Kill Icon
if(file.Exists("../materials/weapons/asuran_inventory.vmt")) then
	killicon.Add("weapon_ancient","weapons/asuran_killicon", Color( 255, 255, 255, 255 ));
end
language.Add("Striderminigun_ammo","Anicent Pulse Ammo");
language.Add("weapon_ancient","Ancient Gun");

local printed = false;
local nextprint = 0;
local timetocharge = StarGate.CFG:Get("Ancient_Gun","ChargeTime",8);

function SWEP:Think()
	if self.Weapon:Clip1() <= 0 then
		if not printed then
			self.Owner:PrintMessage( HUD_PRINTCENTER, "Charging... "..timetocharge ) --Sorry for chat print, will be gui based later :P
			nextprint = CurTime() + 1;
			printed = true
		else
			if nextprint <= CurTime() then
				timetocharge = timetocharge-1;
				self.Owner:PrintMessage( HUD_PRINTCENTER, "Charging... "..timetocharge)
				nextprint = CurTime() + 1;
			end
		end
	else
		printed = false;
		timetocharge = StarGate.CFG:Get("Ancient_Gun","ChargeTime",8);
	end
	return true;
end
--Draw Weapon Selection
-- Mckay why is this here ?
-- Please make sure its working BEFORE you upload it please.

--[[function SWEP:DrawWeaponSelection( x, y, wide, tall, alpha )

	draw.SimpleText( "", "ScoreboardText", x + wide/2, y +tall*0.2, Color( 255, 210, 0, 255 ), TEXT_ALIGN_CENTER )
	
end]]--
